body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }

.container {
  display: flex;
  height: 100vh;
}

.editor, .preview, .preview-only {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
}

.editor {
  background: #f8f9fa;
}

textarea {
  width: 100%;
  height: calc(100vh - 60px);
  border: none;
  padding: 10px;
  font-size: 16px;
  resize: none;
  outline: none;
  background: transparent;
  font-family: 'SF Mono', Menlo, monospace;
  line-height: 1.6;
}

button {
  margin-top: 10px;
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.preview {
  border-left: 1px solid #eee;
  line-height: 1.8;
}

/* Katex公式优化 */
.katex { font-size: 1.1em !important; }
.katex-display { margin: 1em 0 !important; }
